package com.yonyou.pmclouds.plan.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.plan.entity.PlanProgressHistoryVO;
import org.apache.ibatis.annotations.Param;

public interface PlanProgressHistoryMapper extends BaseMapper<PlanProgressHistoryVO> {
    PlanProgressHistoryVO[] queryProgressHisByPlan(@Param("planId") String planId,@Param("pkPlanwrite")String pkPlanwrite);

    /**
     * 查询计划的进度反馈记录
     *
     * @param planIds
     * @return
     */
    PlanProgressHistoryVO[] queryProgressHistoryByPlans(@Param("planIds") String[] planIds);


    /**
     * 查询本次修改中的历史记录
     */
    PlanProgressHistoryVO[] queryProgressHistoryByPkPlanWrite(@Param("pkPlanWrite")String pkPlanWrite);
    /**
     * 根据pkPlans查询最近有效历史记录
     */
    PlanProgressHistoryVO[] queryEffectiveProgressHisByPlans(@Param("pkPlans")String[] pkPlans);

    /**
     *  根据pkPlan查询最后一条记录信息
     */

    PlanProgressHistoryVO[] queryLastProgressHistoryByPkPlans(@Param("pkPlans")String[] pkPlans);

}
